﻿#include "pch.h"
#include "SvgRect.h"

//矩形直角/圆角

void CSvgRect::initialObject(void)
{
	scale = 1;
	strokeWidth = 0;
	////似乎各类浏览器都默认为黑色
	fill = SVG_COLOR_FILL_DEFAULT;

	leftX = 0;
	topY = 0;
	width = 0;
	height = 0;

	//圆角矩形
	rx = 0;
	ry = 0;
	isRoundedCorner = false;
}


CSvgRect::CSvgRect(void)
{
	initialObject();
}

CSvgRect::CSvgRect(const TCHAR* aObjSvgType):CSvgObject()
{
	initialObject();
	objectSvgType = CString(aObjSvgType);
}


CSvgRect::~CSvgRect(void)
{
}


CString CSvgRect::toString(void) {

	CString mstr;
	mstr.Format(_T("unfinished"));
	return mstr;
}
